Page({
  data: {
    tourRoutes: [
      { id: 1, title: '此生必驾318 在雅精彩', views: '81', imageUrl: '/static/images/tour1.svg' },
      { id: 2, title: '雨城区非遗之旅', views: '180', imageUrl: '/static/images/tour2.svg' },
      { id: 3, title: '荥经县非遗之旅', views: '88', imageUrl: '/static/images/tour3.svg' },
      { id: 4, title: '天全县非遗之旅', views: '158', imageUrl: '/static/images/tour4.svg' },
      { id: 5, title: '石棉县非遗之旅', views: '245', imageUrl: '/static/images/tour5.svg' },
      { id: 6, title: '名山区非遗之旅', views: '168', imageUrl: '/static/images/tour6.svg' }
    ],
    tourNews: [
      { id: 1, title: '过大年、品年味，雅安这些"伴手礼"值得带回家!', date: '2024-02-14', imageUrl: '/static/images/tour-news1.svg' },
      { id: 2, title: '"决战雪山之巅" 王岗坪48小时民歌拉力赛即将热烈鸣响：快来享受视听盛宴', date: '2024-01-09', imageUrl: '/static/images/tour-news2.svg' },
      { id: 3, title: '点击查看！你收到一份来自雅安的品茶邀约~', date: '2024-03-20', imageUrl: '/static/images/tour-news3.svg' },
      { id: 4, title: '上热搜了！！行·万里路，必到雅安！', date: '2024-05-24', imageUrl: '/static/images/tour-news4.svg' },
      { id: 5, title: '不止台湾电影展！点击获取属于你的"主角光环"→', date: '2024-05-24', imageUrl: '/static/images/tour-news5.svg' }
    ],
    activeTab: 'routes'
  },
  onLoad() {
    // 初始化页面数据
  },
  switchTab(e) {
    const tab = e.currentTarget.dataset.tab
    this.setData({
      activeTab: tab
    })
  }
})